{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="">
				<a href="{:url('ticket/manage')}">票务管理</a>
			</li>
			<li class="layui-this">编辑售票项目</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">
				<form class="layui-form form-container" action="{:url('ticket/edit_item')}" method="post">
					<input type="hidden" name="id" value="{$item.id}" />
					<div class="layui-form-item">
						<label class="layui-form-label">项目名称</label>
						<div class="layui-input-block">
							<input  required lay-verify="required" value="{$item.title}" type="text" name="title"  class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">消费次数</label>
						<div class="layui-input-block">
							<input  required lay-verify="number" type="text" name="nums" value="{$item.nums}" placeholder="请输入消费次数" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">项目说明</label>
						<div class="layui-input-block">
							<textarea name="desc" placeholder="请输入项目说明" class="layui-textarea">{$item.desc}</textarea>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">票面排序</label>
						<div class="layui-input-block">
							<input lay-verify="number" value="{$item.sort}" type="text" name="sort" placeholder="请输入票面排序序号" class="layui-input">
						</div>
					</div>
					<!--<div class="layui-form-item">
						<label class="layui-form-label">状态</label>
						<div class="layui-input-block">
							<input type="radio" name="status" value="1" title="激活" checked="checked">
							<input type="radio" name="status" value="2" title="禁用">
						</div>
					</div>-->
					<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn" lay-submit lay-filter="*">保存</button>
							<button type="button" onclick="javascript:history.go(-1)" class="layui-btn layui-btn-primary">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<script>
	// 定义全局JS变量
	var GV = {
		current_controller: "{$controller}/manage"
	};
</script>
{/block}